package cn.touna.jss.common.properties.disconf;

import com.baidu.disconf.client.common.annotations.DisconfFile;
import com.baidu.disconf.client.common.annotations.DisconfFileItem;
import org.springframework.stereotype.Component;

@Component
@DisconfFile(targetDirPath = "disconf", filename = "zhongchengxin.properties")
public class ZhongchengxinProperties {

    private String trareportUrl = "https://tapi.ccxcredit.com/data-service/airtravel/trareport";
    private String account = "wjtest";
    private String privateKey = "8d4322ca3b190e4d";

    @DisconfFileItem(name = "zhongchengxin.trareportUrl", associateField = "trareportUrl")
    public String getTrareportUrl() {
        return trareportUrl;
    }

    public void setTrareportUrl(String trareportUrl) {
        this.trareportUrl = trareportUrl;
    }

    @DisconfFileItem(name = "zhongchengxin.account", associateField = "account")
    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    @DisconfFileItem(name = "zhongchengxin.privateKey", associateField = "privateKey")
    public String getPrivateKey() {
        return privateKey;
    }

    public void setPrivateKey(String privateKey) {
        this.privateKey = privateKey;
    }
}
